package com.xu.mall.order.payment.model;

public class PaymentStatus {
	public static final PaymentStatus NOPAID = PaymentStatus.valueOf("NOPAID");
	public static final PaymentStatus PAYING = PaymentStatus.valueOf("PAYING");
	public static final PaymentStatus PAID = PaymentStatus.valueOf("PAID");

	private String name;

	private PaymentStatus(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return this.name;
	}

	public static PaymentStatus valueOf(String type) {
		return new PaymentStatus(type.toUpperCase());
	}
}
